package br.elsa.survey.tests.utils;

import java.util.List;

import br.elsa.survey.domain.questions.Question;
import br.elsa.survey.domain.survey.Survey;

/**
 * Utility Class to create Survey
 * 
 * @author diego
 * 
 */
public class SurveyFactory {

	public static final String SURVEY_TITLE = "title";
	public static final String SURVEY_DESCRIPTION = "description";

	public static Survey createDummySurvey(List<Question> questions) {

		Survey survey = new Survey();
		survey.setDescription(SURVEY_DESCRIPTION);
		survey.setTitle(SURVEY_TITLE);
		survey.addQuestions(questions);

		return survey;
	}

}
